import 'package:flutter/material.dart';

import 'package:fluro/fluro.dart';
// import 'package:flutter_jsp/details_page.dart';
import './routers_handler.dart';

class Routes{
  // 根目录
  static String root = '/';
  static String detailsPage = '/detail';
  static void configureRoutes(Router router){
    // 找不到路由
    router.notFoundHandler = new Handler(
      handlerFunc: (BuildContext context,Map<String,List<String>> params){
        print('ERROR====> ROUTE WAS FOUND!!!'); 
      }
    );
    // 配置路由
    router.define(detailsPage,handler: detailHandler);
  }
}
